<?php

class DBMLikeFilterTranslator implements DBMTranslator {
	
	public static function translateToMySQL($translatable, $command = null) {
		// get the filter data
		$property 	= $translatable->getProperty();
		$expression	= $translatable->getLikeExpression();
		
		// create the filter
		return $property . " LIKE '" . $expression . "'";
	}
	
	public static function translateToPostgreSQL($translatable, $command = null) {
		// get the filter data
		$property 	= $translatable->getProperty();
		$expression	= $translatable->getLikeExpression();
		
		// create the filter
		return $property . " LIKE '" . $expression . "'";
	}
	
	public static function translateToSQLServer($translatable, $command = null) {
		// get the filter data
		$property 	= $translatable->getProperty();
		$expression	= $translatable->getLikeExpression();
		
		// create the filter
		return $property . " LIKE '" . $expression . "'";
	}
}

?>